
<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
    }

    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }

    .sm-st-info {
        font-size: 12px;
        padding-top: 2px;
    }

    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }

    .orange {
        background: #fa8564 !important;
    }

    .tar {
        background: #45cf95 !important;
    }

    .sm-st .green {
        background: #86ba41 !important;
    }

    .pink {
        background: #AC75F0 !important;
    }

    .yellow-b {
        background: #fdd752 !important;
    }

    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }

    .st-green {
        background-color: #27C24C;
    }

    .st-violet {
        background-color: #7266ba;
    }

    .st-blue {
        background-color: #23b7e5;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }

    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        margin-right: 10px;
    }

    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }

    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }

    .stat.lg .name {
        font-size: 16px;
    }

    .stat-col .progress {
        height: 2px;
    }

    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }
    .panel-heading{
        min-height: 40px;
    }
    .ranking-body{
        height: 300px;
        overflow:auto;
    }

</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#one" data-toggle="tab">{:__('Dashboard')}</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">

                <div class="row">
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
                            <div class="sm-st-info">
                                <span>{$totaluser}</span>
                                {:__('Total user')}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-violet"><i class="fa fa-book"></i></span>
                            <div class="sm-st-info">
                                <span>{$totalviews}</span>
                                {:__('Total view')}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-blue"><i class="fa fa-shopping-bag"></i></span>
                            <div class="sm-st-info">
                                <span>{$totalorder}</span>
                                {:__('Total order')}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-green"><i class="fa fa-dollar"></i></span>
                            <div class="sm-st-info">
                                <span>{$totalorderamount}</span>
                                {:__('Total order amount')}
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-12">
                        <div id="datefilter">
                            <form action="" role="form" novalidate class="form-inline">
                                <a href="javascript:;" class="btn btn-primary btn-refresh"><i class="fa fa-refresh"></i></a>
                                <a href="javascript:;" class="btn btn-success btn-filter">{:__('Today')}</a>
                                <a href="javascript:;" class="btn btn-success btn-filter">{:__('Yesterday')}</a>
                                <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 7 Days')}</a>
                                <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 30 Days')}</a>
                                <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last month')}</a>
                                <a href="javascript:;" class="btn btn-success btn-filter">{:__('This month')}</a>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    <input type="text" class="form-control input-inline datetimerange" placeholder="{:__('Specify the date')}" style="width:270px;" value="{$date}"/>
                                </div>
                            </form>
                        </div>

                    </div>
                    <div class="col-lg-8">
                        <div id="echart" class="btn-refresh" style="height:300px;width:100%;"></div>
                    </div>
                    <div class="col-lg-4">
                        <div class="card sameheight-item stats" style="padding-top: 60px">
                            <div class="card-block">
                                <div class="row row-sm stats-container">
                                    <div class="col-xs-6 stat-col">
                                        <div class="stat-icon"><i class="fa fa-rocket"></i></div>
                                        <div class="stat">
                                            <div class="value"> {$todayusersignup}</div>
                                            <div class="name"> {:__('Today user signup')}</div>
                                        </div>
                                        <div class="progress">
                                            <div class="progress-bar progress-bar-success" style="width: 30%"></div>
                                        </div>
                                    </div>
                                    <div class="col-xs-6 stat-col">
                                        <div class="stat-icon"><i class="fa fa-shopping-cart"></i></div>
                                        <div class="stat">
                                            <div class="value"> {$todayuserlogin}</div>
                                            <div class="name"> {:__('加购物车')}</div>
                                        </div>
                                        <div class="progress">
                                            <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                                        </div>
                                    </div>
                                    <div class="col-xs-6  stat-col">
                                        <div class="stat-icon"><i class="fa fa-line-chart"></i></div>
                                        <div class="stat">
                                            <div class="value"> {$todayorder}</div>
                                            <div class="name"> {:__('Today order')}</div>
                                        </div>
                                        <div class="progress">
                                            <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                                        </div>
                                    </div>
                                    <div class="col-xs-6  stat-col">
                                        <div class="stat-icon"><i class="fa fa-users"></i></div>
                                        <div class="stat">
                                            <div class="value"> {$unsettleorder}</div>
                                            <div class="name"> {:__('Unsettle order')}</div>
                                        </div>
                                        <div class="progress">
                                            <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                                        </div>
                                    </div>
                                    <div class="col-xs-6  stat-col">
                                        <div class="stat-icon"><i class="fa fa-list-alt"></i></div>
                                        <div class="stat">
                                            <div class="value"> {$sevendnu}</div>
                                            <div class="name"> {:__('Seven dnu')}</div>
                                        </div>
                                        <div class="progress">
                                            <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                                        </div>
                                    </div>
                                    <div class="col-xs-6 stat-col">
                                        <div class="stat-icon"><i class="fa fa-dollar"></i></div>
                                        <div class="stat">
                                            <div class="value"> {$sevendau}</div>
                                            <div class="name"> {:__('今日总额')}</div>
                                        </div>
                                        <div class="progress">
                                            <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
				<div class="row" style="">

                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <div class="col-lg-6">
                                    浏览量UV (<span id="sum_uv">0</span>)
                                </div>
                                <div  class="col-lg-6" style="font-size: 12px">
                                    PC/移动端占比：<span id="pc_uv">0%</span> / <span id="wap_uv">0%</span>
                                </div>
                            </div>
                            <div class="panel-body">
                                <div id="echart_uv" class="btn-refresh" style="height:200px;width:100%;"></div>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <div class="col-lg-6">
                                    成交金额 (GMV)
                                </div>
                                <div  class="col-lg-6" style="font-size: 12px">
                                    总额:AU$<span id="pay_sum">0</span>
                                </div>
                            </div>
                            <div class="panel-body">
                                <div id="echart_pay" class="btn-refresh" style="height:200px;width:100%;"></div>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                客户新增数量&订单转化率(百分比)

                            </div>
                            <div class="panel-body">
                                <div id="echart_user" class="btn-refresh" style="height:200px;width:100%;"></div>
                            </div>
                        </div>

                    </div>
				</div>

                <div class="row" style="">

                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                会员购买次数排行
                            </div>
                            <div class="panel-body ranking-body">
                                <table class="table table-striped table-bordered table-hover table-nowrap">
                                    <thead>
                                    <tr>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">排名</div>

                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">头像</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">昵称</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">数据</div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                        {volist name="ranking.buylist" key="index" id="list"}
                                        <tr>
                                            <td style="text-align: center; vertical-align: middle;">
                                                {$index}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle;">
                                                <img src="{$list.user.avatar}" class="img-sm img-center">
                                            </td>
                                            <td style="text-align: center; vertical-align: middle;">
                                                {$list.user.nickname} | {$list.user.mobile}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle;">
                                                {$list.count}
                                            </td>
                                        </tr>
                                        {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                会员购物金额排行
                            </div>
                            <div class="panel-body ranking-body">
                                <table class="table table-striped table-bordered table-hover table-nowrap">
                                    <thead>
                                    <tr>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">排名</div>

                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">头像</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">昵称</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">数据</div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="ranking.paylist" key="index" id="list"}
                                    <tr>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$index}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            <img src="{$list.user.avatar}" class="img-sm img-center">
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.user.nickname} | {$list.user.mobile}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.sumprice}
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                会员最近活跃度排行
                            </div>
                            <div class="panel-body ranking-body">
                                <table class="table table-striped table-bordered table-hover table-nowrap">
                                    <thead>
                                    <tr>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">排名</div>

                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">头像</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">昵称</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">数据</div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="ranking.uvlist" key="index" id="list"}
                                    <tr>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$index}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            <img src="{$list.avatar}" class="img-sm img-center">
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.nickname} | {$list.mobile}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.count}
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                商品访问排行榜
                            </div>
                            <div class="panel-body ranking-body">
                                <table class="table table-striped table-bordered table-hover table-nowrap">
                                    <thead>
                                    <tr>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">排名</div>

                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">图片</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">标题</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">数据</div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="ranking.viewslist" key="index" id="list"}
                                    <tr>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$index}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            <img src="{$list.image}" class="img-sm img-center">
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.title}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.views}
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                商品销量排行榜
                            </div>
                            <div class="panel-body ranking-body">
                                <table class="table table-striped table-bordered table-hover table-nowrap">
                                    <thead>
                                    <tr>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">排名</div>

                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">图片</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">标题</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">数据</div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="ranking.saleslist" key="index" id="list"}
                                    <tr>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$index}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            <img src="{$list.image}" class="img-sm img-center">
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.title}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.sales}
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                商品收藏排行榜
                            </div>
                            <div class="panel-body ranking-body">
                                <table class="table table-striped table-bordered table-hover table-nowrap">
                                    <thead>
                                    <tr>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">排名</div>

                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">图片</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">标题</div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;">
                                            <div class="th-inner ">数据</div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="ranking.likelist" key="index" id="list"}
                                    <tr>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$index}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            <img src="{$list.image}" class="img-sm img-center">
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.title}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle;">
                                            {$list.like}
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>

                    </div>
                </div>
			</div>
        </div>
    </div>
</div>
